{% extends "djangollery/root.html" %}
{% load i18n %}

{% block title %}
    {% trans "All Photos"%}
{% endblock %}
{% block dochead %}
<link rel="stylesheet" href="/static/djangollery/css/basic.css" type="text/css" />
<link rel="stylesheet" href="/static/djangollery/css/djangollery.css" type="text/css" />
{% endblock %}

{% block content %}

<h1>{% trans "All Photos"%}</h1>
<div id="container">
{% if object_list %}
    {% for photo in object_list %}
	<div class="photo-gallery">
		<div class="gallery-photo">
        	<a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
    	</div>
	</div>
    {% endfor %}
{% else %}
<p>{% trans "No photos were found."%}</p>
{% endif %}

{% if is_paginated %}
<p>{{ hits }}{% trans " photos total."%}</p>
<div id="page_controls">
    <p>
	{% if has_previous %}
		<a href="{% url pl-photo-list previous %}">{% trans "Previous"%}</a> | 
	{% endif %}
	{% blocktrans %} page {{ page }} of {{ pages }}{% endblocktrans %}
	{% if has_next %}| 
		<a href="{% url pl-photo-list next %}">{% trans "Next" %}</a>
	{% endif %}
	</p>
</div>
{% endif %}
</div>
{% endblock %}
